///
/// 玩安卓的api
///
import 'package:retrofit/retrofit.dart';
import 'package:dio/dio.dart';
import 'package:example_app/model/banner_model.dart';
import 'package:example_app/model/popular_site_model.dart';
import 'package:example_app/model/top_article_model.dart';

part 'wan_api.g.dart';

@RestApi(baseUrl: "https://www.wanandroid.com")
abstract class WanApi {
  factory WanApi(Dio dio, {String baseUrl}) = _WanApi;

  @GET("/banner/json")
  Future<BannerModel> getBanner();

  @GET("/article/top/json")
  Future<TopArticleModel> getTopArticle();

  @GET("/friend/json")
  Future<PopularSiteModel> getPopularSite();
}
